package com.sdry.mapper.cb;

import com.sdry.model.cb.HydroPower;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

import java.util.List;

public interface HydroPowerMapper {
    int delete(Long id);

    int insert(HydroPower hydroPower);

    int insertDynamic(HydroPower hydroPower);

    int updateDynamic(HydroPower hydroPower);

    int update(HydroPower hydroPower);

    HydroPower selectById(Long id);

    List<HydroPower> findPageWithResult(@Param("stockId") Long stockId, @Param("date") String date);

    @Update("update cb_hydroPower_t set del = 1 where id = #{id}")
    Integer setDelete(Long id);

}
